import _ from 'lodash'
import $ from '../node_modules/jquery'
import printMe from './print.js';
import './style.css'
import server from './components/server/server.js'
import '../node_modules/layui-src/dist/layui.all'
import '../node_modules/layui-src/dist/css/layui.css'
import '../node_modules/layui-src/dist/css/modules/code.css'
import '../node_modules/layui-src/dist/css/modules/layer/default/layer.css'
import '../node_modules/layui-src/dist/css/modules/laydate/default/laydate.css'


console.log($)

var device = layui.device();
console.log(device)

function component() {
    var element = document.createElement('div');
    var btn = document.createElement('button');

    element.innerHTML = _.join(['Hello', 'webpack'], ' ');

    btn.innerHTML = 'Click me and check the console!';
    btn.onclick = printMe;
    element.appendChild(btn);
    element.classList.add('hello')


    return element;
}

// document.body.appendChild(component());

var s = new server()
$(body).append(s.tpl)


